// 在使用属性值的组件内导入 useContext
import React,{ useContext } from 'react'
// 导入创建的 Context
import { ThemeContext }  from './ComponentRoot'


const ComponentF = (props) => {
    return (
        <div>
            组件F {props.name}
            <h2>{useContext(ThemeContext)}</h2>
        </div>
    )
}

export default ComponentF
